package com.ewili.x.special.service.data.impl;

import com.ewili.x.special.dao.inter.UserDao;
import com.ewili.x.special.entity.User;
import com.ewili.x.special.service.data.inter.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public Page<User> findAll(Pageable pageable) {
        return userDao.findAll(pageable);
    }
}
